import NavBar from '@/components/common/NavBar';
import FriendList from '@/components/user/FriendList';
import UserList from '@/components/user/UserList';
import { Search } from '@taroify/icons';
import { View } from '@tarojs/components';
import { useState } from 'react';

export default () => {
  const [key, setKey] = useState(0);
  return (
    <NavBar
      left={<Search size={30} />}
      menu={['消息', '回复']}
      defaultMenu={key}
    >
      <View className="bg-[#F2F2F2] p-2 flex flex-col gap-3">
        <UserList></UserList>
        <FriendList></FriendList>
      </View>
    </NavBar>
  );
};
